package com.itic.web.index.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.web.index.service.AppIndexService;
import com.itic.web.qo.TokenData;
import com.itic.web.ro.DataResult;
import com.itic.web.ro.RoResult;



@Controller
@RequestMapping(value="/app/index")
public class AppIndexController extends BaseController {

	
    @Autowired
    private AppIndexService appIndexService;
    
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/getIndex")
    @ResponseBody
    public DataResult getIndex(TokenData data){
    	return appIndexService.getIndex(data);
    }
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/getArticleList")
    @ResponseBody
    public RoResult getArticleList(TokenData data,String pid){
    	return appIndexService.getArticleList(data,pid);
    }


    
}